package com.zhangzhenwei.demo.controller;
import com.zhangzhenwei.demo.service.DemoService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhangzhenwei.demo.domain.Demo;


import java.util.List;

@RestController
@RequestMapping("/demo")
public class democontroller {
    @Resource
    private DemoService DemoService;
    @GetMapping("/list")
    public List<Demo>list(){
        return DemoService.list();
    }
}
